import { http } from '@/http/http'

/**
 * 统计回款数据
 */
export function repaymentData() {
  return http.get<any>('/investor/partner/loan/stats/repayment')
}

/**
 * 首页资金统计
 */
export function loanStats() {
  return http.get<any>('/investor/partner/loan/stats/index')
}

/**
 * 运营长审核
 * loan_id 借款工单id
 * data{
 * status 1通过 -2拒绝
 * remark 审核说明
 * }
 */
export function loanAudit(loan_id, data) {
  return http.put<any>(`/investor/partner/loan/audit/${loan_id}`, data)
}
